package es.app.util;

import java.io.Serializable;
import java.util.List;

public interface GenericDAO<T extends Serializable, E> {
	E create(T newInstance) throws RuntimeException;
	T findById(E id) throws RuntimeException;
	void update(T transientObject) throws RuntimeException;
	void delete(T persistentObject) throws RuntimeException;
	List<T> findAll() throws RuntimeException;
}
